package file;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

// 按照字符来写
@SuppressWarnings({"all"})
public class Demo11 {
    public static void main(String[] args) {
        try (Writer writer = new FileWriter("d:?test.txt")){
            writer.write("xyz");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
